package com.neusoft.neuiotms.dcam.workflow.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcam.workflow.model.ZhuanyiKJ;

public interface ZhuanyiKJRepository extends JpaRepository<ZhuanyiKJ, Long> {

    ZhuanyiKJ findByTaskId(String taskId);

    ZhuanyiKJ findByWorkOrderNumAndTaskId(String workOrderNum, String taskId);

    List<ZhuanyiKJ> findByWorkOrderNum(String workOrderNum);

    List<ZhuanyiKJ> findAllByWorkOrderNumOrderByCreateTimeDesc(String workOrderNum);
}
